#include "common.h"

CHAR  apparentchar[0x80]=
{  
  '\0'
};
VOID KeyboardDriver()
{
   ActivateKeyboard();
   MESSAGE message;


   while(1)
   {
      /*I think here may be something wrong,because when the process executes the function 
	       ReceiveMessage ,and in the interrupt,ok ,at this time,the user press the keyboard and 
	       input a character,the interrupt reenter.It change the input pointer.It's dangerous.Ok ,
	       maybe it works well,but someday a potential error will occur with a sudden.We will waste 
	       lots of time to find it.It doesn't derserve the efforts.*/
       if(ReceiveMessage(&message)==ARTIST_ERROR_OK)
       {
         switch(message.type)
         {
            case KEYBOARDDRIVER_WHOIAM:
            {
                Print("KeyboardDriver Begin...\n");
               // Print("\n\nthe process struct size %X\n\n",sizeof(PROCESS));
              //  NotifyWaited(&signal);
            break;
            }
            case KEYBOARDDRIVER_INTERRUPT:
            {
         
                Print("%X ",message.value0);
             
                break;
            }
          }
        }   
    }
}
